package model

import "time"

type DataAttrInstanceItem struct {
	ID        uint `gorm:"primaryKey"`
	CreatedAt time.Time
	UpdatedAt time.Time

	InstanceID       uint             `gorm:"comment:实例ID"`
	DataAttrInstance DataAttrInstance `gorm:"foreignKey:InstanceID"`

	Code    string `gorm:"comment:编码"`
	Name    string `gorm:"comment:名称"`
	SortNum int    `gorm:"comment:排序号;default:0"`
	Enabled bool   `gorm:"comment:是否启用;default:true"`
}
